package com.graduationdesign.zengyan.graduationdesignapp.dataLayer.dataBase;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import java.util.List;

/**
 * Created by ZengYan on 2018/5/12.
 *
 * @desc :
 */
@Dao
public interface RecentlyUsedDao {

    @Insert
    void insertAll(RecentlyUsed ... recentlyUseds);

    @Query("SELECT * FROM RecentlyUsed")
    List<RecentlyUsed> getAll();

    @Query("SELECT * FROM RecentlyUsed WHERE user_stunum == :stunum")
    List<RecentlyUsed> findDataByStuNum(String stunum);

}
